
#-*- coding: utf -8 -*-

import sys
import pickle

class Teste:
    def __init__(self, x):
        self.x = x

obj = Teste(49)
f = open("teste1.dat", "w")
p = pickle.dump(obj, f)
f.close()
del obj
obj = pickle.load(open("teste1.dat", "r"))

print obj.x
